<?php

$text = 'abcde';
$text[0] = '!';
echo $text; // !bcde